package com.ruoyi.cderp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租户对象 tenant
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
public class Tenant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** JDBC连接地址 */
    @Excel(name = "JDBC连接地址")
    private String jdbcUrl;

    /** JDBC用户名 */
    private String jdbcUsername;

    /** JDBC密码 */
    private String jdbcPassword;

    /** 状态 */
    @Excel(name = "状态")
    private Integer available;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setJdbcUrl(String jdbcUrl) 
    {
        this.jdbcUrl = jdbcUrl;
    }

    public String getJdbcUrl() 
    {
        return jdbcUrl;
    }
    public void setJdbcUsername(String jdbcUsername) 
    {
        this.jdbcUsername = jdbcUsername;
    }

    public String getJdbcUsername() 
    {
        return jdbcUsername;
    }
    public void setJdbcPassword(String jdbcPassword) 
    {
        this.jdbcPassword = jdbcPassword;
    }

    public String getJdbcPassword() 
    {
        return jdbcPassword;
    }
    public void setAvailable(Integer available) 
    {
        this.available = available;
    }

    public Integer getAvailable() 
    {
        return available;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("jdbcUrl", getJdbcUrl())
            .append("jdbcUsername", getJdbcUsername())
            .append("jdbcPassword", getJdbcPassword())
            .append("available", getAvailable())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
